package com.popcap.widgets;

public class Constant
{
	private String type;
	private String name;
	private String value;
	
	
	public Constant(String type, String name, String value)
	{
		this.type = type;
		this.name = name;
		this.value = value;
	}
	
	public String getType()
	{
		return type;
	}
	public String getName()
	{
		return name;
	}
	
	public String getValue()
	{
		return value;
	}
	
	public String getValueDefinition()
	{
		if(type.equals("String"))
		{
			return WidgetsConfiguration.toHexChars(value);
		}
		else
		{
			return value;
		}
	}	
}
